<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/admin/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>编辑用户信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="../css/backCss.css">

		<style type="text/css">
			.m5 .item .bean {
				width: 130px;
				text-align: right;
				line-height: 25px;
				float: left;
			}
			
			.m5 .item .text {
				width: 220px;
				line-height: 25px;
				float: left;
				text-align: left;
			}
			
			.m5 .item {
				width: 350px;
				line-height: 25px; 
			}
			
			.m5 {
				width: 350px;
				height: 330px;
				line-height: 25px;
				border:1px solid #C6D3DF; 
				border-width: 2px;
				background: #F0F0F0; 
			}
		</style>
		<script src="../js/calendar3.js"></script>
	</head>

	<body>
		<div class="top" align="center">
			<jsp:include page="top.jsp"></jsp:include>
		</div>
		<div class="content" align="center">
			<div align="center">
				<form action="updatePeronalInfoUser.action" method="post">
					<input type="hidden" name="user.id" value="${user.id }" />
					<div class="m5">
						<div style="padding-top: 20px"></div>
						<div class="item">
							<span class="bean">用户名：</span>
							<span class="text"> <input type="text" name="user.userID"
									value="${user.userID }" disabled="disabled" /> </span>
						</div>

						<div class="item">
							<span class="bean">姓名：</span>
							<span class="text"> 
									<input type="text" name="user.name" value="${user.name }" /> </span>
						</div>

						<div class="item">
							<span class="bean">电子邮箱：</span>
							<span class="text"> 
								<s:property escape="session" value="user.email"/>
								<input type="text" name="user.email" value="${user.email }" /> </span>
						</div>
						<div class="item">
							<span class="bean">性别：</span>
							<span class="text"> 
								<s:if test="#session.user.sex==true">
									<input type="radio" name="user.sex" value="1" checked="checked" />男
									<input type="radio" name="user.sex" value="0" />女
								</s:if>
								 <s:else>
									<input type="radio" name="user.sex" value="1" />男
									<input type="radio" name="user.sex" value="0" checked="checked" />女
								</s:else> </span>
						</div>
						<div class="item">
							<span class="bean">生日：</span>
							<span class="text"> 
								<input type="text" id="control_date"  name="user.birthday" value="${user.birthday }"
									onclick="new Calendar().show(this);" readonly="readonly" />
							</span>
						</div>

						<div class="item">
							<span class="bean">创建日期：</span>
							<span class="text"> <input type="hidden"
									name="user.createDateTime" value="${user.createDateTime}">
								<s:property value="#session.user.createDateTime" />&nbsp; </span>
						</div>

						<div class="item">
							<span class="bean">最近登录：</span>
							<span class="text"> <input type="hidden"
									name="user.lastLoginDateTime" value="${user.lastLoginDateTime}">
								<s:property value="#session.user.lastLoginDateTime" />&nbsp; </span>
						</div>

						<div class="item">
							<span class="bean">最近登录IP：</span>
							<span class="text"> <input type="hidden" name="user.ip"
									value="${user.ip}"> <s:property
									value="#session.user.ip" />&nbsp; </span>
						</div>
						<div class="item">
							<span class="bean">所属身份：</span>
							<span class="text"> <s:if
									test="#session.user.identity == 0">
						管理员
					</s:if> <s:elseif test="#session.user.identity == 1">
						普通用户
					</s:elseif> &nbsp; </span>
						</div>
						<div class="item">
							<span class="bean">所出状态：</span>
							<span class="text"> 
								<input type="hidden"	name="user.status" value="${user.status}"> <s:if
									test="#session.user.status==true">
						可用
					</s:if> <s:else>
						禁用
					</s:else> &nbsp; </span>  
						</div>
						  
						<div class="item" style="padding-top: 7px">
							<input type="submit" value="更 新" style="background: #E6F5FF;">
							<input type="button" onclick="window.location.href='modifyPassword.jsp'" value="修改密码" style="background: #E6F5FF;">
							<input type="button" value="返 回" style="background: #E6F5FF;"
								onclick="history.go(-1);">
						</div>
					</div>
				</form>
			</div>
		</div>
		<div class="foot" align="center">
			<jsp:include page="foot.jsp"></jsp:include>
		</div>
	</body>
</html>
